package com.pcbly.web.components.utils;

import java.io.File;

public class AssistantUtil {
	public static void createNewFile(String savepath)
			throws java.io.IOException {
		int pos = savepath.lastIndexOf("\\");
		String dir = savepath.substring(0, pos);
		File directory = new File(dir);
		if (!directory.exists())
			directory.mkdirs();
		File file = new File(savepath);
		if (file.exists())
			file.createNewFile();
	}
}
